//
//  CXLoadingHud.m
//  TestFace2
//
//  Created by 曹想 on 2019/3/6.
//  Copyright © 2019 ShangHaiXinLaWangLuoKeji. All rights reserved.
//

#import "CXLoadingHud.h"
#import <SVProgressHUD/SVProgressHUD.h>
@implementation CXLoadingHud

+(void)showHud{
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
    [SVProgressHUD show];
    
}

+ (void)showHudWithText:(NSString *)text delay:(NSTimeInterval)delay{
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
    [SVProgressHUD showWithStatus:text];
    [SVProgressHUD dismissWithDelay:2];
}


+(void)dismissHud{
    [SVProgressHUD dismiss];
}

+(void)dismissHudWithDelay:(NSTimeInterval)delay{
    [SVProgressHUD dismissWithDelay:delay];
}

@end
